package com.qianzhu8.kfc.boot.response;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 响应基类
 *
 * @author xuyanjun
 * @date 2020/4/10
 */
@Getter
@Setter
@ToString
public class BaseResponse<T> implements Serializable {

    /**
     * 是否成功
     */
    private Boolean success;

    /**
     * 响应码
     */
    private Integer code;

    /**
     * 响应消息
     */
    private String message;

    /**
     * 数据
     */
    private T data;
}
